package com.example.asus.a20180917;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.HorizontalScrollView;

import com.example.asus.a20180917.recyclerview.RecyclerViewActivity;

public class MainActivity extends AppCompatActivity{
    public Button button;//注册
    public Button button2;//登录

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        final Intent intent =new Intent(this,RegisterActivity.class);

        button = findViewById(R.id.button);

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(intent);
                finish();
            }
        });



        final Intent intent1 = new Intent(this, RecyclerViewActivity.class);

        button2 = findViewById(R.id.button2);

        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(intent1);
                //System.out.println("dawangba:");
                finish();
            }
        });
    }
}
